package org.jeecg.modules.flower.vo;

import java.util.List;

import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.flower.entity.FlowerStorehouse;
import org.jeecg.modules.flower.entity.FlowerStorehouseDetail;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 仓库主表
 * @Author: jeecg-boot
 * @Date:   2022-07-15
 * @Version: V1.0
 */
@Data
@ApiModel(value="flower_storehousePage对象", description="仓库主表")
public class FlowerStorehousePage {

	/**主键*/
	@ApiModelProperty(value = "主键")
	private String id;
	@ApiModelProperty(value = "基地id")
	private String baseId;
	/**仓库名称*/
	@Excel(name = "仓库名称", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "仓库名称")
	private String name;
	/**仓库编码*/
	@Excel(name = "仓库编码", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "仓库编码")
	private String code;
	/**负责人*/
	@Excel(name = "负责人", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "负责人")
	private String person;
	/**负责人编码*/
	@Excel(name = "负责人编码", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "负责人编码")
	private String personcode;


	@Excel(name = "成本中心", width = 15 ,needMerge = true)
	@Dict(dicCode = "ch_cost",dicText = "costText")
	@ApiModelProperty(value = "成本中心")
	private String cost;

	/**状态 0正常1删除*/
	@Excel(name = "状态 0正常1删除", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "状态 0正常1删除")
	private Integer state;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	
	@ExcelCollection(name="仓库子表")
	@ApiModelProperty(value = "仓库子表")
	private List<FlowerStorehouseDetail> flowerStorehouseDetailList;
	
}
